package com.gdcp.mapper;

import com.gdcp.beans.RoleUser;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;
import java.util.Map;

@Repository
public interface RoleUserMapper {
    int add(RoleUser roleUser);

    List<RoleUser> findPageBreakByCondition(Map<String, Object> model);

    List<RoleUser> findPageBreakByConditionByShopId();

    int removeByPrimaryKey(@PathVariable("id")Integer id);

    void updateInformation(RoleUser roleUser);

    RoleUser queryInfoById(@PathVariable("id") Integer id);

    List<RoleUser> searchInformation(Map<String, Object> param);

    RoleUser getInformation(@PathVariable("id") Integer id);

    RoleUser getInformationByUserId(@PathVariable("iuser_id") Integer id);
}
